//
//  QMAStartUpProtocol.h
//  Pods
//
//  Created by ashezhang on 2019/11/21.
//

#ifndef QMAStartUpProtocol_h
#define QMAStartUpProtocol_h

#import "MABaseApplication.h"

NS_ASSUME_NONNULL_BEGIN

@protocol QMAStartUpProtocol <NSObject>

// 处理启动过程中发生的错误
- (void)handleStartUpError:(NSError *_Nonnull)error
                       app:(MABaseApplication *_Nullable)app
                  parentVC:(UIViewController *_Nonnull)parentVC;

// 小程序启动成功
- (void)handleStartUpSuccessWithApp:(MABaseApplication *_Nonnull)app;

@optional

/// 是否开启错误提示，默认不开启
- (BOOL)enableErrorAlert;

@end

NS_ASSUME_NONNULL_END

#endif /* QMAStartUpProtocol_h */
